package a.e.b.a;

import a.e.a.s;
import a.e.b.b.t;
import a.e.b.c.cb;
import a.e.b.c.o;
import a.j.tb;
import a.j.ub;
import org.w3c.dom.NamedNodeMap;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;

public class b
  extends a
{
  static Class d;
  public static boolean e;
  
  public String a()
  {
    return "ArcEdge";
  }
  
  public String b()
  {
    return "http://www.yworks.com/xml/graphml";
  }
  
  public Class d()
  {
    if (!i.i) {}
    return d == null ? (b.d = b("a.j.ub")) : d;
  }
  
  public void a(tb paramtb, cb paramcb, o paramo)
    throws a.e.b.c.a
  {
    super.a(paramtb, paramcb, paramo);
    ub localub = (ub)paramtb;
    paramcb.a("Arc", "http://www.yworks.com/xml/graphml").c("type", a(localub.ab())).a("height", localub.cb()).a("ratio", localub.bb()).b();
  }
  
  public void a(tb paramtb, Node paramNode, t paramt)
    throws a.e.b.b.a
  {
    boolean bool = i.i;
    int j = i.h;
    ub localub = (ub)paramtb;
    NodeList localNodeList = paramNode.getChildNodes();
    if (localNodeList != null)
    {
      int i = 0;
      do
      {
        if (i >= localNodeList.getLength()) {
          break;
        }
        Node localNode1 = localNodeList.item(i);
        if ((!bool) && (j != 0)) {
          return;
        }
        if (!bool)
        {
          if (localNode1.getNodeType() == 1)
          {
            String str = localNode1.getLocalName();
            if (bool) {
              continue;
            }
            if ("Arc".equals(str))
            {
              NamedNodeMap localNamedNodeMap = localNode1.getAttributes();
              Node localNode2 = localNamedNodeMap.getNamedItem("type");
              if (!bool)
              {
                if (localNode2 != null) {
                  localub.b(a(localNode2.getNodeValue()));
                }
                localNode2 = localNamedNodeMap.getNamedItem("height");
              }
              if (!bool)
              {
                if (localNode2 != null) {
                  localub.b((float)Double.parseDouble(localNode2.getNodeValue()));
                }
                localNode2 = localNamedNodeMap.getNamedItem("ratio");
                if (bool) {
                  continue;
                }
              }
              if (localNode2 != null) {
                localub.a((float)Double.parseDouble(localNode2.getNodeValue()));
              }
            }
          }
          i++;
        }
      } while (j == 0);
    }
    if (!bool) {
      super.a(localub, paramNode, paramt);
    }
  }
  
  static String a(byte paramByte)
  {
    return e.a(paramByte);
  }
  
  static byte a(String paramString)
  {
    return s.g(paramString);
  }
  
  static Class b(String paramString)
  {
    try
    {
      return Class.forName(paramString);
    }
    catch (ClassNotFoundException localClassNotFoundException)
    {
      throw new NoClassDefFoundError(localClassNotFoundException.getMessage());
    }
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.e.b.a.b

 * JD-Core Version:    0.7.0.1

 */